<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
<!-- Navbar -->
<div  th:fragment="header-nav" class="navbar navbar-default">

    <div class="navbar-container" id="navbar-container">
        <div class="navbar-header pull-left">
            <a href="#" class="navbar-brand">
                <small>
                    <i class="icon-leaf"></i>
                    后台管理系统
                </small>
            </a><!-- /.brand -->
        </div><!-- /.navbar-header -->
        <div class="navbar-header pull-right" role="navigation">
            <ul class="nav ace-nav">
                <li class="light-blue">
                    <a data-toggle="dropdown" href="#" class="dropdown-toggle">
                        <span class="user-info">
                            <small>欢迎光临 </small>
                             <span  th:text="${user?.systemUserDO.name}">
                             </span>
                        </span>
                        <i class="icon-caret-down"></i>
                    </a>

                    <ul class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
                        <li>
                            <a th:href="@{/admin/user/pwd/change}">
                                <i class="icon-cog"></i>
                                密码修改
                            </a>
                        </li>

                        <li class="divider"></li>

                        <li>

                            <a href="#" onclick="logout()">
                                <i class="icon-off"></i>
                                退出
                            </a>
                        </li>
                    </ul>
                </li>
            </ul><!-- /.ace-nav -->
        </div><!-- /.navbar-header -->
    </div><!-- /.container -->
    <div class="navbar-container">
        <div class="navbar-header pull-left">
            <ul class="nav ace-nav">
                <li >
                    <a th:href="@{/admin/home}" class="head-text">
                        首页
                    </a>
                </li>
                <li  th:if="${roles?.contains('SYS_ADMIN')}">
                    <a th:href="@{/admin/user/list}" class="head-text">
                        用户管理
                    </a>
                </li>
            </ul>
        </div>
    </div>
</div>
</body>
</html>